package gp;

public class GPExecutor {
	
	public static void main(String[] args) {
		
		TreeChromossome op1 = new TreeChromossome();
		op1.content = "3";
		
		TreeChromossome op2 = new TreeChromossome();
		op2.content = "2";
		
		TreeChromossome first = new TreeChromossome();
		first.content = "-";
		first.left = op1;
		first.right = op2;
		
		TreeChromossome op1_2 = new TreeChromossome();
		op1_2.content = "4";
		
		TreeChromossome op2_3 = new TreeChromossome();
		op2_3.content = "5";
		
		TreeChromossome sec = new TreeChromossome();
		sec.content = "+";
		sec.left = op1_2;
		sec.right = op2_3;
		
		for(int i =0 ; i<10;i++){
			TreeChromossome result = GeneticProgrammingOperators.crossover(
					first, sec, 0.1);
			System.out.println(result);
		}
	}

}
